<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>messageBox.html</title>
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" type="text/css" href="../ext/resources/css/ext-all.css">
    <script type="text/javascript" src="../ext/adapter/ext/ext-base.js"></script>
    <script type="text/javascript" src="../ext/ext-all.js"></script>
  </head>
  
  <body>
    
  </body>
  <script type="text/javascript">
     Ext.onReady(function(){
         //showErrorMsg("System Exception,please Contact your system administrator");
         showWarningMsg("-------------------------------");
     });
     //显示异常信息提示框
     function showErrorMsg(errorMsg){
        var config = {
           title:"Exception Information",
           modal: true,
           msg: errorMsg,
           prompt: true,
           buttons:Ext.Msg.OK,
           icon:Ext.Msg.ERROR,
           width: 400,
           fn:function(btnName,inputContent){
              alert(data2);
           }
           
        };
        Ext.MessageBox.show(config);
     }
     //显示警告提示信息对话框
     function showWarningMsg(warnMsg){
       var config = {
          title:"Warning Information",
          modal: true,
          msg:warnMsg,
          buttons: Ext.Msg.OK,
          icon: Ext.Msg.INFO
          
       };
       
       Ext.MessageBox.show(config);
     }
  </script>
</html>
